//
//  CRUserModel.m
//  CRChatRoom
//
//  Created by CuiFengshuai on 15/11/20.
//  Copyright © 2015年 SecondGroup. All rights reserved.
//

#import "CRUserModel.h"

@implementation CRUserModel
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.username forKey:@"username"];
    [aCoder encodeObject:self.password forKey:@"password"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.username = [aDecoder decodeObjectForKey:@"username"];
        self.password = [aDecoder decodeObjectForKey:@"password"];
    }
    return self;
}

@end
